# -*- conding:UTF-8 -*-

'''
@ Project: take_out
@ File: urls.py
@ Author: 韩成瑾
@ Date：2022/8/16 19:32

'''

from django.urls import path
from myapp import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('userinfo',views.UserInfo)
router.register('orderinfo',views.OrderInfo)







urlpatterns = [
    # 登录
    path('login',views.Login.as_view()),
    # 退出登录
    path('logout',views.Logout.as_view()),
    # 地址;
    path('address/',views.UserAdder.as_view()),
    # 菜品分类
    path('commoditys',views.CommodityView.as_view()),
    path('commodity/<int:pk>',views.CommodityOneView.as_view()),
    # 订单
    path('order',views.OrderInfoView.as_view())
]

urlpatterns += router.urls
